package service;

import dao.AdminCommentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pojo.Comment;

import java.util.List;
//
@Service("adminCommentService")
@Transactional
public class AdminCommentService {
    @Autowired
    private AdminCommentDao adminCommentDao;
    public int dC(Integer cid){return adminCommentDao.deleteComment(cid);}
    public List<Comment> sAC(){return adminCommentDao.selectAllComment();}
    public List<Comment> sOC(Integer cid){return adminCommentDao.selectOneComment(cid);}
}
